<%@ Page Language="C#" MasterPageFile="~/NiSis.Master" AutoEventWireup="true" Codebehind="Deconsolidamento.aspx.cs"
    Inherits="NiSis.Deconsolidamento" Title="Untitled Page" %>

<%@ Register Src="UserControls/MeseAnnoPicker.ascx" TagName="MeseAnnoPicker" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="lblTitle" Text="Fase di Deconsolidamento" BackColor="#666666" BorderColor="#E6E2D8"
        Font-Bold="True" Font-Size="0.9em" ForeColor="White" Width="751px" runat="server" />
    <p>
    </p>
    <uc1:MeseAnnoPicker ID="MeseAnnoPicker1" runat="server" />
    <asp:ImageButton ID="cmdISelectShipper" runat="server" ToolTip="Aggiungi trader alla catena"
        Width="22px" Height="19px" OnClick="cmdSelectShipper_Click" ImageUrl="~/Img/refresh.png" />
    <br />
    <br />
    <asp:GridView ID="GrdDeConsolidamento" runat="server"
     AllowPaging="true" PageSize="30" OnPageIndexChanging="gGrdDeConsolidamento_PageIndexChanging"
     AutoGenerateColumns="False" OnRowCommand="GrdConsolidamento_RowCommand"
        CellPadding="4" OnRowDataBound="GrdDeconsolidamento_DataBound" ForeColor="#333333" GridLines="None">
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#E3EAEB" />
        <Columns>
            <asp:BoundField DataField="CdPool" HeaderText="Pool" />
            <asp:BoundField DataField="DsSocieta" HeaderText="Venditore Uscente" HtmlEncode="False" />
            <asp:BoundField DataField="LTrader" HeaderText="Venditore Ultimo" NullDisplayText="-"
                HtmlEncode="False" />
            <asp:BoundField DataField="DsShipper" HeaderText="Shipper" HtmlEncode="False" />
            <asp:TemplateField HeaderText="Stato">
                <ItemTemplate>
                    <asp:Image ID="imgState" Width="18px" Height="18px" runat="server" />  
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Deconsolida">
                <ItemTemplate>
                    <asp:ImageButton ID="btnDeconsolida" ToolTip="Deconsolida batch" ImageUrl="~/Img/pencil.png" Width="18px"
                        Height="18px" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#7C6F57" />
        <EmptyDataTemplate>
            Non ci sono i dati
        </EmptyDataTemplate>
    </asp:GridView>

    <asp:HiddenField ID="hdLastCdPool" runat="server" />
    <asp:HiddenField ID="hdLastCdMese" runat="server" />
</asp:Content>
